package com.yuantu.judiciary.model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 订单创建参数
 *
 * @author syw
 * @since 2023-08-14
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AddOrderDTO {
    private String tradeNo;
    private String name;
    private Double totalPrice;
    private String openId;
    private String type;
    private String ipInfo;

    public AddOrderDTO(String tradeNo, String name, Double totalPrice, String openId) {
        this.tradeNo = tradeNo;
        this.name = name;
        this.totalPrice = totalPrice;
        this.openId = openId;
    }

    public AddOrderDTO(String tradeNo, String name, Double totalPrice, String openId, String type) {
        this.tradeNo = tradeNo;
        this.name = name;
        this.totalPrice = totalPrice;
        this.openId = openId;
        this.type = type;
    }

    public AddOrderDTO(String tradeNo, String name, Double totalPrice) {
        this.tradeNo = tradeNo;
        this.name = name;
        this.totalPrice = totalPrice;
    }
}
